package games.ninJumpDx.ui.actions
{
	import actions.PropsAction;
	import actions.PropsActionGroup;
	
	import core.Global;
	
	import games.ninJumpDx.data.GameData;

	public class DragonWing extends Dragon
	{
		public function DragonWing(name:String)
		{
			super(name);
			var pys:PropsActionGroup = new PropsActionGroup();
			pys.type = PropsActionGroup.SERIAL;
			var py1:PropsAction = new PropsAction(this);
			py1.props = [{prop:"scaleX",init:scaleX,end:scaleX * .7},{prop:"y",init:y,end:y+50}];
			py1.speed = GameData.instance.speed * .01;
			var py2:PropsAction = new PropsAction(this);
			py2.props = [{prop:"scaleX",init:scaleX * .7,end:scaleX},{prop:"y",init:y+50,end:y}];
			py2.speed = GameData.instance.speed * .01;
			
			pys.list = new Vector.<PropsAction>();
			pys.list.push(py1,py2,py1.clone(),py2.clone(),py1.clone(),py2.clone(),py1.clone(),py2.clone(),py1.clone(),py2.clone());
			Global.addAction(pys);
		}
		
	}
}